#pragma once
#include<stdio.h>
#include<string.h>
#include<assert.h>
#include<stdlib.h>
#define MAX 1000
#define name_max 20
#define gender_max 4
#define tele_max 12 
#define address_max 50
#define MAX1 3
#define ADD_SIZE 2
typedef struct addressbook
{
	char name[name_max];
	char gender[gender_max];
	int age;
	char tele[tele_max];
	char address[address_max];
}book;

typedef struct count
{
	book* peo;
	int num;
	int cap;
}count;

void Initbook1(count* p);
void Load(count*p);
void Initbook(count* p);
void Printf(const count* p, int i);
void check(count* p);
void Add(count* p);
int Findname(const count* pc, char name[]);
void Del(count* p);
void Search(const count* p);
void Modify(count* p);
void Display(const count* p);
void Empty(count* p);
void Save(count* p);
void Sort(count* p);
void Des(count* p);